import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import eslint from "vite-plugin-eslint";

const eslintOptions = {
  fix: true,
  cache: false,
};
export default defineConfig({
  plugins: [vue(), eslint(eslintOptions)],
  server: {
    proxy: {
      "/api": {
        target: "http://10.1.10.229:8081",
        changeOrigin: true,
      },
      "/rtc": {
        target: "http://119.91.145.64:1985",
        changeOrigin: true,
      },
    },
  },
});
